﻿using Husb.DataUtil;
using System.Data;
namespace CentralOffice.Admin.Data {
    partial class AddressDataSet
    {
        public partial class addressRow
        {
            public string FilterExpression
            {
                get
                {
                    string where = "";

                    //where += DataAccessUtil.GetPartWhereCondition("Id", this.Id);
                    where += DataAccessUtil.GetPartWhereCondition("GroupId", this, true);
                    where += DataAccessUtil.GetPartWhereCondition("UserId", this, true);
                    where += DataAccessUtil.GetPartWhereCondition("PsnName", this);
                    where += DataAccessUtil.GetPartWhereCondition("sex", this,true);
                    where += DataAccessUtil.GetPartWhereCondition("NickName", this);
                    where += DataAccessUtil.GetPartWhereCondition("DeptName", this);
                    where += DataAccessUtil.GetPartWhereCondition("TelNoDept", this);
                    where += DataAccessUtil.GetPartWhereCondition("AddDept", this);
                    where += DataAccessUtil.GetPartWhereCondition("TelNoHome", this);
                    where += DataAccessUtil.GetPartWhereCondition("AddHome", this);
                    where += DataAccessUtil.GetPartWhereCondition("MobilHome", this);
                    where += DataAccessUtil.GetPartWhereCondition("Notes", this);
                    return where;
                }
            }
        }
    }
}
